<div class="panel-body">
    <form name="form1" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
      <div class="form-group">
        <label class="col-lg-2 control-label">上级类别:</label>
        <div class="col-lg-4">
          <input type="text" class="form-control" ng-model="parent_name" ng-disabled="flag == 0">
          <!-- <ui-select ng-model="obj.parent_id" theme="bootstrap" ng-change="change(obj.parent_id)" ng-disabled="flag == 0">
            <ui-select-match>{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="item.id as item in super_type_list | filter: $select.search">
              <span ng-bind-html="item.name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select> -->
        </div>
      </div>
      <div class="form-group">
        <label class="col-lg-2 control-label">类别名称:</label>
        <div class="col-lg-4">
          <input type="text" class="form-control" ng-model="obj.name" placeholder='必填'>
        </div>
      </div>
      <div class="form-group">
        <label class="col-lg-2 control-label">类别类型:</label>
        <div class="col-lg-4">
          <select ng-model="obj.type" class="form-control" disabled>
            <option value="J">景区</option>
            <option value="M">商户</option>
            <option value="H">酒店</option>
            <option value="T">交通</option>
            <option value="S">商场</option>
          </select>
        </div>
      </div>
      <div class="form-group">
        <label class="col-lg-2 control-label">排序:</label>
        <div class="col-lg-4">
          <input type="number" class="form-control" ng-model="obj.sort">
        </div>
      </div>
      <div class="form-group">
        <label class="col-lg-2 control-label">类别简介:</label>
        <div class="col-lg-4">
          <input type="text" class="form-control" ng-model="obj.name_info">
        </div>
      </div>
      <div class="form-group">
          <label class="col-lg-2 control-label">轮播图:</label>
          <div class="col-sm-4">
              <button class="btn m-b-xs w-sm btn-info" ng-click="image()">
                  <i class="fa fa-file-image-o"></i> 添加图片
              </button>                    
          </div>
      </div>

      <div class="col-sm-12" style="padding:10px" ng-repeat="item in imgarr">           
          <div class="col-sm-offset-2 col-sm-4">
              <img ng-src="{{item}}" width="100%" height="100"  ng-show="item.lastIndexOf('.pdf')=='-1'">
              <a href= "{{item}}" target="_Blank" ng-show="item.lastIndexOf('.pdf')!='-1'">{{item}}</a>
              <a type = 'button' class="btn-xs m-b-xs w-sm btn-danger" ng-click="del($index)">删除</a>	
          </div> 
      </div>  
    </form>
    <div class="col-lg-2"></div>
    <div class="col-lg-4">
      <button class="btn btn-primary btn-rounded" ng-click="save()">保存</button>
      <button class="btn btn-default btn-rounded" ng-click="cancel()">取消</button>
    </div>
  </div>